import asyncio
import os
import sys

from src.task2.task2_main import TaskOrchestrator2


async def main():
    # """主函数"""
    if len(sys.argv) != 2:
        print("使用方法: python run_task2.py 'topic'")
        print(f"  示例: python run_task2.py '2025 Q3 AI大模型安全政策法规'")
        return
    topic = sys.argv[1]
    # 创建任务编排器并执行任务
    orchestrator = TaskOrchestrator2()
    await orchestrator.execute_task(topic)


if __name__ == "__main__":
    asyncio.run(main())